<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="<%= basePath %>frame/star/jquery.js"></script>
	<script type="text/javascript" src="<%= basePath %>frame/star/rater-star.js"></script>
	<link  type="text/css" href="<%= basePath %>frame/star/jquery.rater.css" rel="stylesheet"/>
  </head>
  
  <body>
    model page. <br>
	<c:forEach items="${modelList}" var="model">
	number:<c:out value="${model.number}"/>
	kind:<c:out value="${model.kind}"/>
	label:<c:out value="${model.label}"/>
	<br/>
	</c:forEach>

	<form action="model_save.action" method="get">
		number:<input type="text" id="number" name="number" size="50">
		kind:<input type="text" id="kind" name="kind" size="50">
		lable:<input type="text" id="label" name="label" size="50">
		description:<input type="text" id="description" name="description" size="50">
		<input type="submit">
	</form>
  </body>
	<div id="demo7"></div>
<script type="text/javascript">
	var options	= {
		min	: 5,
		max	: 10,
		step: 0.5,
		//url	: 'ajax.php',
		after_ajax	: function(ret) {
			alert(ret.ajax);
		}
	}
	$('#demo7').rater(options);
</script>
</html>

